<!DOCTYPE html>
<html lang="en">
    <head>
        <? $this->load->helper('url'); ?>
        <meta charset="utf-8">
        <meta name="viewport" content="width=device-width, initial-scale=1.0">
        <link rel="icon" type="image/png" href="<? echo base_url('assets/images/favicon.ico');?>">
        <title><?echo $title?></title>
        <link href='<?php echo base_url('assets/css/bootstrap.css'); ?>' rel="stylesheet" type="text/css">
        <link href='<?php echo base_url('assets/css/signin.css'); ?>' rel="stylesheet">
    </head>

    <body>
        <?php echo validation_errors(); ?>
        <div class="container">
            <form class="form-signin" method="post" action="<?php echo base_url('login'); ?>">
                <h2 class="form-signin-heading">Please sign in</h2>
                <? if (isSet($error)) { ?>
                    <div class="alert alert-danger alert-dismissable">
                        <button type="button" class="close" data-dismiss="alert" aria-hidden="true">&times;</button>
                        Wrong username or password.
                    </div>
                <? } ?>
                <input type="text" name="user" class="form-control" placeholder="Username" value="<? echo set_value('user'); ?>" />
                <input type="password"  name="password"  class="form-control" placeholder="Password"/>
                <input  type="submit" name="submit" value="Login" class="btn btn-lg btn-info btn-block">
            </form>
        </div>